#!/bin/bash

echo -e "\n\n\n" | ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
cat ~/.ssh/id_rsa.pub >> ~/.ssh/known_hosts
ssh-add ~/.ssh/id_rsa
`sudo killall sshd; echo`
echo -e "\n\n\n" | sudo /usr/sbin/sshd
